<template>
  <div class="makeup">
    <p class="bigtitle">超值体验</p>
    <p class="smalltitle">试试，你会发现肌肤的真爱</p>
    <ul>
      <li v-for="(item,key) in makeup" :key="key">
        <img :src="item.imgurl" alt mode="widthFix">
        <p class="makeup_p2">{{item.p2}}</p>
        <!-- <p class="makeup_p3">{{item.p3}}</p> -->
        <P class="makeup_p4">&yen;{{item.p4}}</P>
        <span v-on:click="sonpop">立即申请</span>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'MakeUp',
  data() {
    return {
      makeup: [
        {
          imgurl:
            'http://sucai.suoluomei.cn/sucai_zs/images/20190510165615-heseke01.png',
          p2: '赋活雪肤四件套',
          p3: 'FUXING XUEFU FOUR-PIECE SET',
          p4: '4.00',
          id: '0',
        },
        {
          imgurl:
            'http://sucai.suoluomei.cn/sucai_zs/images/20190510165615-heseke02.png',
          p2: '隔离防护乳试用装',
          p3: 'ISOLATED PROTECTIVE MILK',
          p4: '4.00',
          id: '1',
        },
      ],
    }
  },
  methods: {
    sonpop() {
      this.$emit('listerson')
    },
  },
}
</script>

<style lang="less" scoped>
.makeup {
  padding: 20px 0px;
  margin-left: 10px;
  margin-right: 10px;
  .bigtitle {
    width: 100%;
    text-align: center;
    letter-spacing: 2px;
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 7px;
  }
  .smalltitle {
    width: 100%;
    text-align: center;
    font-size: 16px;
    margin-bottom: 15px;
  }
  ul {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    li {
      margin-top: 20px;
      width: 50%;
      padding: 5px 0;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      overflow: hidden;
      img {
        width: 150px;
        height: 120px;
      }
      .makeup_p1 {
        font-size: 16px;
        font-weight: 600;
      }
      .makeup_p2 {
        font-size: 16px;
        font-weight: 600;
      }
      .makeup_p3 {
        font-size: 14px;
        text-align: center;
        color: #909090;
        margin: 8px 0;
      }
      .makeup_p4 {
        padding-top: 8px;
        box-sizing: border-box;
        font-size: 18px;
        color: #076347;
      }
      .makeup_p5 {
        font-size: 14px;
      }
      span {
        border: 1px solid #000;
        color: #000;
        font-size: 14px;
        padding: 6px 10px;
        border-radius: 3px;
        margin-top: 8px;
      }
    }
  }
}
</style>
